import request from '@/utils/request'

export const announcementList = async(data) => await request({
  url: '/announcement/list',
  method: 'post',
  data
})

export const announcementAdd = async(data) => await request({
  url: '/announcement/add',
  method: 'post',
  data
})

export const announcementEdit = async(data) => await request({
  url: '/announcement/edit',
  method: 'post',
  data
})

export const announcementDel = async(data) => await request({
  url: '/announcement/del',
  method: 'post',
  data
})

export const announcementById = async(data) => await request({
  url: '/announcement/byId',
  method: 'post',
  data
})
